Namespaces

Functions

Translator|string
__(string $key = null, array $replace = [], string $locale = null)

Translate the given message.

at line 821
void
abort(int $code, string $message = '', array $headers = [])

Throw an HttpException with the given data.

at line 28
void
abort_if(bool $boolean, int $code, string $message = '', array $headers = [])

Throw an HttpException with the given data if the given condition is true.

at line 47
void
abort_unless(bool $boolean, int $code, string $message = '', array $headers = [])

Throw an HttpException with the given data unless the given condition is true.

at line 68
string
action(string $name, array $parameters = [], bool $absolute = true)

Generate the URL to a controller action.

at line 85
mixed|Application
app(string $abstract = null, array $parameters = [])

Get the available container instance.

at line 99
string
app_path(string $path = '')

Get the path to the application folder.

at line 118
array
append_config(array $array)

Assign high numeric IDs to a config item to force appending.

at line 17
array
array_add(array $array, string $key, mixed $value)

Add an element to an array using "dot" notation if it doesn't exist.

at line 42
array
array_collapse(array $array)

Collapse an array of arrays into a single array.

at line 55
array
array_divide(array $array)

Divide an array into two arrays. One with keys and the other with values.

at line 68
array
array_dot(array $array, string $prepend = '')

Flatten a multi-dimensional associative array with dots.

at line 82
array
array_except(array $array, array|string $keys)

Get all of the given array except for a specified array of items.

at line 96
mixed
array_first(array $array, callable $callback = null, mixed $default = null)

Return the first element in an array passing a given truth test.

at line 111
array
array_flatten(array $array, int $depth = INF)

Flatten a multi-dimensional array into a single level.

at line 125
void
array_forget(array $array, array|string $keys)

Remove one or many array items from a given array using "dot" notation.

at line 139
mixed
array_get(ArrayAccess|array $array, string $key, mixed $default = null)

Get an item from an array using "dot" notation.

at line 154
bool
array_has(ArrayAccess|array $array, string|array $keys)

Check if an item or items exist in an array using "dot" notation.

at line 168
mixed
array_last(array $array, callable $callback = null, mixed $default = null)

Return the last element in an array passing a given truth test.

at line 183
array
array_only(array $array, array|string $keys)

Get a subset of the items from the given array.

at line 197
array
array_pluck(array $array, string|array $value, string|array|null $key = null)

Pluck an array of values from an array.

at line 212
array
array_prepend(array $array, mixed $value, mixed $key = null)

Push an item onto the beginning of an array.

at line 227
mixed
array_pull(array $array, string $key, mixed $default = null)

Get a value from the array, and remove it.

at line 242
mixed
array_random(array $array, int|null $num = null)

Get a random value from an array.

at line 256
array
array_set(array $array, string $key, mixed $value)

Set an array item to a given value using "dot" notation.

at line 273
array
array_sort(array $array, callable|string $callback)

Sort the array by the given callback or attribute name.

at line 287
array
array_sort_recursive(array $array)

Recursively sort an array by keys and values.

at line 300
array
array_where(array $array, callable $callback)

Filter the array using the given callback.

at line 314
array
array_wrap(mixed $value)

If the given value is not an array, wrap it in one.

at line 327
string
asset(string $path, bool $secure = null)

Generate an asset path for the application.

at line 132
auth(string|null $guard = null)

Get the available auth instance.

at line 145
back(int $status = 302, array $headers = [], mixed $fallback = false)

Create a new redirect response to the previous location.

at line 164
string
base_path(string $path = '')

Get the path to the base of the install.

at line 177
string
bcrypt(string $value, array $options = [])

Hash the given value.

at line 191
broadcast(mixed|null $event = null)

Begin broadcasting an event.

at line 204
mixed
cache()

Get / set the specified cache value.

at line 221
string
camel_case(string $value)

Convert a value to camel case.

at line 340
string
class_basename(string|object $class)

Get the class "basename" of the given object / class.

at line 353
array
class_uses_recursive(object|string $class)

Returns all traits used by a class, its subclasses and trait of their traits.

at line 368
collect(mixed $value = null)

Create a collection from the given value.

at line 391
mixed
config(array|string $key = null, mixed $default = null)

Get / set the specified configuration value.

at line 259
string
config_path(string $path = '')

Get the configuration path.

at line 280
csrf_field()

Generate a CSRF token form field.

at line 317
string
csrf_token()

Get the CSRF token value.

at line 331
mixed
data_fill(mixed $target, string|array $key, mixed $value)

Fill in data where it's missing.

at line 406
mixed
data_get(mixed $target, string|array $key, mixed $default = null)

Get an item from an array or object using "dot" notation.

at line 421
mixed
data_set(mixed $target, string|array $key, mixed $value, bool $overwrite = true)

Set an item on an array or object using dot notation.

at line 465
string
database_path(string $path = '')

Get the database path.

at line 350
void
dd(...$args)

Dump the passed variables and end the script.

at line 524
string
decrypt(string $value)

Decrypt the given value.

at line 363
mixed
dispatch(mixed $job)

Dispatch a job to its appropriate handler.

at line 376
string
e(Htmlable|string $value)

Escape HTML special characters in a string.

at line 541
string
elixir(string $file, string $buildDirectory = 'build')

Get the path to a versioned Elixir file.

at line 392
string
encrypt(mixed $value)

Encrypt the given value.

at line 429
bool
ends_with(string $haystack, string|array $needles)

Determine if a given string ends with a given substring.

at line 559
mixed
env(string $key, mixed $default = null)

Gets the value of an environment variable.

at line 573
array|null
event(...$args)

Dispatch an event and call the listeners.

at line 444
factory()

Create a model factory builder for a given class, name, and amount.

at line 457
mixed
head(array $array)

Get the first element of an array. Useful for method chaining.

at line 611
void
info(string $message, array $context = [])

Write some information to the log.

at line 481
string
kebab_case(string $value)

Convert a string to kebab case.

at line 624
mixed
last(array $array)

Get the last element from an array.

at line 637
Log|null
logger(string $message = null, array $context = [])

Log a debug message to the logs.

at line 495
method_field(string $method)

Generate a form field to spoof the HTTP verb used by forms.

at line 512
mix(string $path, string $manifestDirectory = '')

Get the path to a versioned Mix file.

at line 528
mixed
object_get(object $object, string $key, mixed $default = null)

Get an item from an object using "dot" notation.

at line 652
mixed
old(string $key = null, mixed $default = null)

Retrieve an old input item.

at line 575
mixed
policy(object|string $class)

Get a policy instance for a given class.

at line 590
string
preg_replace_array(string $pattern, array $replacements, string $subject)

Replace a given pattern with each value in the array in sequentially.

at line 679
string
public_path(string $path = '')

Get the path to the public folder.

at line 603
redirect(string|null $to = null, int $status = 302, array $headers = [], bool $secure = null)

Get an instance of the redirector.

at line 619
Request|string|array
request(array|string $key = null, mixed $default = null)

Get an instance of the current request or an input item from the request.

at line 637
mixed
resolve(string $name)

Resolve a service from the container.

at line 658
string
resource_path(string $path = '')

Get the path to the resources folder.

at line 671
Response|ResponseFactory
response(string $content = '', int $status = 200, array $headers = [])

Return a new response from the application.

at line 686
mixed
retry(int $times, callable $callback, int $sleep = 0)

Retry an operation a given number of times.

at line 700
string
route(string $name, array $parameters = [], bool $absolute = true)

Generate the URL to a named route.

at line 707
string
secure_asset(string $path)

Generate an asset path for the application.

at line 720
string
secure_url(string $path, mixed $parameters = [])

Generate a HTTPS url for the application.

at line 734
mixed
session(array|string $key = null, mixed $default = null)

Get / set the specified session value.

at line 750
string
snake_case(string $value, string $delimiter = '_')

Convert a string to snake case.

at line 731
bool
starts_with(string $haystack, string|array $needles)

Determine if a given string starts with a given substring.

at line 745
string
storage_path(string $path = '')

Get the path to the storage folder.

at line 771
string
str_after(string $subject, string $search)

Return the remainder of a string after a given value.

at line 759
bool
str_contains(string $haystack, string|array $needles)

Determine if a given string contains a given substring.

at line 773
string
str_finish(string $value, string $cap)

Cap a string with a single instance of a given value.

at line 787
bool
str_is(string $pattern, string $value)

Determine if a given string matches a given pattern.

at line 801
string
str_limit(string $value, int $limit = 100, string $end = '...')

Limit the number of characters in a string.

at line 816
string
str_plural(string $value, int $count = 2)

Get the plural form of an English word.

at line 830
string
str_random(int $length = 16)

Generate a more truly "random" alpha-numeric string.

at line 845
string
str_replace_array(string $search, array $replace, string $subject)

Replace a given value in the string sequentially with an array.

at line 860
string
str_replace_first(string $search, string $replace, string $subject)

Replace the first occurrence of a given value in the string.

at line 875
string
str_replace_last(string $search, string $replace, string $subject)

Replace the last occurrence of a given value in the string.

at line 890
string
str_singular(string $value)

Get the singular form of an English word.

at line 903
string
str_slug(string $title, string $separator = '-')

Generate a URL friendly "slug" from a given string.

at line 917
string
str_start(string $value, string $prefix)

Begin a string with a single instance of a given value.

at line 931
string
studly_case(string $value)

Convert a value to studly caps case.

at line 944
mixed
tap(mixed $value, callable|null $callback = null)

Call the given Closure with the given value then return the value.

at line 958
string
title_case(string $value)

Convert a value to title case.

at line 977
array
trait_uses_recursive(string $trait)

Returns all traits used by a trait and its traits.

at line 990
Translator|string|array|null
trans(string $key = null, array $replace = [], string $locale = null)

Translate the given message.

at line 786
string
trans_choice(string $key, int|array|Countable $number, array $replace = [], string $locale = null)

Translates the given message based on a count.

at line 806
UrlGenerator|string
url(string $path = null, mixed $parameters = [], bool $secure = null)

Generate a url for the application.

at line 836
validator(array $data = [], array $rules = [], array $messages = [], array $customAttributes = [])

Create a new Validator instance.

at line 856
mixed
value(mixed $value)

Return the default value of the given value.

at line 1009
view(string $view = null, array $data = [], array $mergeData = [])

Get the evaluated view contents for the given view.

at line 877
bool
windows_os()

Determine whether the current environment is Windows based.

at line 1021
mixed
with(mixed $object)

Return the given object. Useful for chaining.

at line 1034